﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourPersistencia;
using PiscoSourDominio;

namespace PiscoSourRESTServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "CartaLocales" in code, svc and config file together.
    public class CartaLocales : ICartaLocales
    {
        private CartaLocalDAO dao = new CartaLocalDAO();
        

        public Carta_Local ObtenerCartaLocal(string codigo)
        {
            return dao.ObtenerCartaLocal(codigo);
        }

        public List<Carta_Local> ListaCartaLocales()
        {
            return dao.ListarCartasLocales().ToList();
        }

        public List<Carta_Local> ObtenerListaCartaLocal(string codigo)
        {
            return dao.ObtenerListaCartaLocal(codigo).ToList();
        }
    }
}
